package com.alexgaoyh.MutiModule.Dubbo.RWSeperate.api.manager.demo.oneWithMany.student.write;

import org.apache.ibatis.annotations.Param;

import com.alexgaoyh.MutiModule.Dubbo.RWSeperate.persist.manager.demo.oneWithMany.student.OneWithManyStudent;
import com.alexgaoyh.MutiModule.Dubbo.RWSeperate.persist.manager.demo.oneWithMany.student.OneWithManyStudentExample;

/**
 * OneWithManyStudent 模块 写接口
 * @author alexgaoyh
 *
 */
public interface IOneWithManyStudentWriteService {

	int insert(OneWithManyStudent record);

    int insertSelective(OneWithManyStudent record);
    
    int updateByExampleSelective(@Param("record") OneWithManyStudent record, @Param("example") OneWithManyStudentExample example);

    int updateByExample(@Param("record") OneWithManyStudent record, @Param("example") OneWithManyStudentExample example);

    int updateByPrimaryKeySelective(OneWithManyStudent record);

    int updateByPrimaryKey(OneWithManyStudent record);
    
    int deleteByExample(OneWithManyStudentExample example);

    int deleteByPrimaryKey(Long id);
    
    /**
     * 根据classId 删除班级下的所有studentList
     * @param classId	班级id
     * @return
     */
    int deleteStudentListByClassId(Long classId);
}
